'''
Author        zzx
Date          2022-08-05 17:26:24
LastEditTime  2022-08-16 14:53:43
LastEditors   zzx
Description   功能描述
'''
from flask_restx import reqparse


page_params = reqparse.RequestParser()
page_params.add_argument('page', type=int, location='args', default=1, help='页码')
page_params.add_argument('size', type=int, choices=[i for i in range(
    1, 101)], location='args', default=20, help='每页显示条数')

page_json_params = reqparse.RequestParser()
page_json_params.add_argument('page', type=int, location='json', default=1, help='页码')
page_json_params.add_argument('size', type=int, choices=[i for i in range(1, 101)],
                              location='json', default=20, help='每页显示条数')
